package cn.wolfcode.luowowo.small.mapper;

import cn.wolfcode.luowowo.small.domin.Goods;
import cn.wolfcode.luowowo.small.query.GoodsQueryObject;

import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Goods record);

    Goods selectByPrimaryKey(Long id);

    List<Goods> selectAll();

    int updateByPrimaryKey(Goods record);

    List<Goods> selectForList(GoodsQueryObject qo);


    void updateGoodsNumById(Long goodsId);

    void addUserAndGoodsRelationById(@Param("goodsId") Long goodsId, @Param("userId") Long userId);

}